package  test
{
	import core.display.Container;
	import starling.core.Starling;
	import starling.display.Quad;
	import starling.display.Sprite;
	
	/**
	 * ...
	 * @author 小痛
	 */
	public class ContainerDragTest extends Sprite 
	{
		
		public function ContainerDragTest() 
		{
			super();
			
			var container:Container = new Container();
			container.addChild(new Quad(100, 100, 0xff00ff));
			//container.addChild(new Quad(50, 50,    ));
			
			//set only the small one can be draged
			//container.dragTarget = container.getChildAt(1);
			container.dragEnabled = true;
			
			addChild(container);
			Starling.current.stage.addChild(this);
		}
		
	}

}